package structuralModel.decoratorModel;

/**
 * 功能描述: 饮品类
 * 2024/02/09
 * <p>
 * ZhangYi
 */
public abstract class Drink {
    // 描述信息
    private String desc;
    // 价格信息
    private float price;


    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    /***
     * 查询商品的费用
     * @return
     */
    protected abstract  float cost();
}
